package com.yrkt.dubbo.hystrix.provider;


import org.springframework.stereotype.Service;

import com.yrkt.dubbo.hystrix.api.DemoService;

@Service
public class DemoServiceImpl implements DemoService {
    public String sayHello(String name) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "from provide: " + name;
    }
}